Telegram Group & Telegram Channel
​​NaturalyCode - AI ресурс который переводит "програмерский" язык в английский.
Поддержка разных "языков" вроде: ruby, python ,js, Aws Policy , CSS, SQL и другие
Там платная подписка, но можно подвязать карту(ничего списывать не будет), попробовать и отменить подписку в течении 14 дней.

 module HTTParty
module Utils
def self.stringify_keys(hash)
return hash.transform_keys(&:to_s) if hash.respond_to?(:transform_keys)
hash.each_with_object({}) do |(key, value), new_hash|
new_hash[key.to_s] = value
end
end
end
end


Перевело в


 HTTParty::Utils.stringify_keys({ "dog" => "Fido", "cat" => "Felix" })

 module defines a helper method "stringify_keys" that transforms the keys of a hash into a string. This method will transform the keys of a hash into a string if the hash responds to "transform_keys". The helper method then iterates over the hash and overwrites the keys with the corresponding values.

P.S. С телефона код может поплыть немного 😅



tg-me.com/developer_tools/377
Create:
Last Update:

​​NaturalyCode - AI ресурс который переводит "програмерский" язык в английский.
Поддержка разных "языков" вроде: ruby, python ,js, Aws Policy , CSS, SQL и другие
Там платная подписка, но можно подвязать карту(ничего списывать не будет), попробовать и отменить подписку в течении 14 дней.

 module HTTParty
module Utils
def self.stringify_keys(hash)
return hash.transform_keys(&:to_s) if hash.respond_to?(:transform_keys)
hash.each_with_object({}) do |(key, value), new_hash|
new_hash[key.to_s] = value
end
end
end
end


Перевело в


 HTTParty::Utils.stringify_keys({ "dog" => "Fido", "cat" => "Felix" })

 module defines a helper method "stringify_keys" that transforms the keys of a hash into a string. This method will transform the keys of a hash into a string if the hash responds to "transform_keys". The helper method then iterates over the hash and overwrites the keys with the corresponding values.

P.S. С телефона код может поплыть немного 😅

BY Dev Tools


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/developer_tools/377

View MORE
Open in Telegram


Dev Tools Telegram | DID YOU KNOW?

Date: |

Launched in 2013, Telegram allows users to broadcast messages to a following via “channels”, or create public and private groups that are simple for others to access. Users can also send and receive large data files, including text and zip files, directly via the app.The platform said it has more than 500m active users, and topped 1bn downloads in August, according to data from SensorTower.

Telegram has exploded as a hub for cybercriminals looking to buy, sell and share stolen data and hacking tools, new research shows, as the messaging app emerges as an alternative to the dark web.An investigation by cyber intelligence group Cyberint, together with the Financial Times, found a ballooning network of hackers sharing data leaks on the popular messaging platform, sometimes in channels with tens of thousands of subscribers, lured by its ease of use and light-touch moderation.Dev Tools from kr


Telegram Dev Tools
FROM USA